export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn:true,
  menuWidth: 80,
  labelWidth: 150,
  menu: false,
  refreshBtn:false,
  columnBtn:false,
  height: '40vh',
  "column": [
    {
      "type": "input",
      "label": "工单号",
      "prop": "docNo",
      "span": 12,
      overHidden:true,
    },

    {
      "type": "input",
      "label": "车间",
      "prop": "workshopName",
      "span": 12,
      overHidden:true,
    },
    {
      "type": "input",
      "label": "产线",
      "prop": "realityLineName",
      "span": 12,
      overHidden:true,
    },
    {
      "type": "input",
      "label": "品号",
      "prop": "itemCode",
      "span": 12,
      overHidden:true,
    },
    {  label: '极性工位',
      children: [
	  {
      "type": "input",
      "label": "设备编号",
      "prop": "deviceSn",
      "span": 12,
      overHidden:true,
    },

	  {
      "type": "input",
      "label": "产品编号",
      "prop": "productSn",
      "span": 12,
      overHidden:true,
    },
	  {
      "type": "input",
      "label": "产品名称",
      "prop": "productName",
      "span": 12,
      overHidden:true,
    },
	  {
      "type": "input",
      "label": "开始加工时间",
      "prop": "startTime",
      "span": 12,
      overHidden:true,
    },
	  {
      "type": "input",
      "label": "结束加工时间",
      "prop": "endTime",
      "span": 12,
      overHidden:true,
    },
	  {
      "type": "input",
      "label": "状态",
      "prop": "status",
      "span": 12,
      html:true,
      formatter:(val) => {
        if(val.status===1){
          return '<b style="color:green">良品<b/>'
        }else {
          return '<b style="color:red">不良品<b/>'
        }
      }

    },
        ]
    },

  ]
}
export const tableAloneOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn:true,
  menuWidth: 80,
  labelWidth: 150,
  menu: false,
  refreshBtn:false,
  columnBtn:false,
  "column": [
    {
      "type": "input",
      "label": "工单号",
      "prop": "docNo",
      "span": 12,
      overHidden:true,
    },

    {
      "type": "input",
      "label": "车间",
      "prop": "workshopName",
      "span": 12,
      overHidden:true,
    },
    {
      "type": "input",
      "label": "产线",
      "prop": "realityLineName",
      "span": 12,
      overHidden:true,
    },
    {
      "type": "input",
      "label": "品号",
      "prop": "itemCode",
      "span": 12,
      overHidden:true,
    },
    {  label: '极性工位',
      children: [
        {
          "type": "input",
          "label": "设备编号",
          "prop": "deviceSn",
          "span": 12,
          overHidden:true,
        },

        {
          "type": "input",
          "label": "产品编号",
          "prop": "productSn",
          "span": 12,
          overHidden:true,
        },
        {
          "type": "input",
          "label": "产品名称",
          "prop": "productName",
          "span": 12,
          overHidden:true,
        },
        {
          "type": "input",
          "label": "开始加工时间",
          "prop": "startTime",
          "span": 12,
          overHidden:true,
        },
        {
          "type": "input",
          "label": "结束加工时间",
          "prop": "endTime",
          "span": 12,
          overHidden:true,
        },
        {
          "type": "input",
          "label": "状态",
          "prop": "status",
          "span": 12,
          html:true,
          formatter:(val) => {
            if(val.status===1){
              return '<b style="color:green">良品<b/>'
            }else {
              return '<b style="color:red">不良品<b/>'
            }
          }

        },
      ]
    },

  ]
}
